//
//  WBHomeViewController.swift
//  WeiBo
//
//  Created by 尹琼 on 2017/4/27.
//  Copyright © 2017年 尹琼. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        setUpNavigationBarItem()
    }
}

// MARK: - 导航栏设置
extension WBHomeViewController {
    
    /// 设置导航栏
    fileprivate func setUpNavigationBarItem() {
        let leftItem:UIBarButtonItem = UIBarButtonItem(title: "好友动态", imageName: nil, taget: self, action: #selector(toFriendViewController))
        navigationItem.leftBarButtonItem = leftItem
    }
    @objc private func toFriendViewController() {
        //去动态
        navigationController?.pushViewController(WBFriendsListViewController(), animated: true)
    }
}
